package com.baidu.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ShiLei
 * @version v1.0
 * @date 2020-03-24 17:05
 */
@RestController
public class PaymentController {


    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/payment/nacos/{id}")
    public String echo(@PathVariable String id) {
        return "Hello Nacos Discovery " + id + " 端口： " + serverPort;
    }
}
